 <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
 
<script type="text/javascript">
var mlddm_shiftx       = 3;       // horizontal submenu shifting (in pixels)
var mlddm_shifty       = -3;      // vertical submenu shifting (in pixels)	
var mlddm_timeout      = 500;     // delay before closing (in milliseconds)
var mlddm_effect       = 'fade'; // specifies the visual effect for submenus (can be 'none', fade', 'slide')
var mlddm_effect_speed = 150;     // specifies the visual effect speed
var mlddm_orientation  = 'h';     // specifies the horizontal or vertical orientation (can be 'h' or 'v')
var mlddm_direction    = 1;       // on/off automatic submenus direction (submenus on left side when not enough right space) (can be 1 or 0)
var mlddm_delay        = 25;      // delay before first menu opening (in milliseconds). Useful to prevent accidental hovers
var mlddm_highlight    = 1;       // keep 'hover' pseudo class style on the parent active items. (can be 1 or 0)
var mlddm_closeonclick = 1;       // closing menu when onclick event happens. (can be 1 or 0)
</script>

<ul class="mlddm"  style="float:right;">

	<li style="font-size:80%"><a href="#">Logged in as: <sec:authentication property="principal.username" /></a>
		<ul >
			<li style="font-size:90%"><a href="${pageContext.request.contextPath}/profile.xhtml?init=true">My Profile</a></li>
			<li style="font-size:90%"><a href="${pageContext.request.contextPath}/j_spring_security_logout">Logout</a></li>
			<li style="visibility:hidden;font-size:90%"><a href="#">Logged in as: <sec:authentication property="principal.username" /></a></li>
		</ul>
	</li>
</ul>

